﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using l1cs.server.model.Instance;
using System.Threading;

namespace l1cs.server.model
{
    public class L1EquipmentTimer
    {
        private static Logger _log = Logger.getLogger( typeof( L1EquipmentTimer ).FullName );

        //public L1EquipmentTimer( L1PcInstance pc, L1ItemInstance item, int delay, int period )
        //{
        //    _pc = pc;
        //    _item = item;
        //}

        //public void run( Object State )
        //{
        //    if ( ( _item.getRemainingTime() - 1 ) > 0 )
        //    {
        //        _item.setRemainingTime( _item.getRemainingTime() - 1 );
        //        _pc.getInventory().updateItem( _item, L1PcInventory
        //                .COL_REMAINING_TIME );
        //    }
        //    else
        //    {
        //        _pc.getInventory().removeItem( _item, 1 );
        //        this.cancel();
        //    }
        //}

        //private L1PcInstance _pc;
        //private L1ItemInstance _item;
    }
}
